export interface ServiceOptions {
  method?: Method,
  url?: string,
  resposeType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream',
  params?: any,
  data?: string | object
}

// export const baseURL = 'http://39.107.137.98:5500/api'
export const baseURL = 'http://localhost:5050/'

type Method = | 'get' | 'GET'
| 'delete' | 'DELETE'
| 'head' | 'HEAD'
| 'options' | 'OPTIONS'
| 'post' | 'POST'
| 'put' | 'PUT'
| 'patch' | 'PATCH'
| 'purge' | 'PURGE'
| 'link' | 'LINK'
| 'unlink' | 'UNLINK';


export interface GetAsyncOptions {
  url: string,
  params?: any,
  headers?: any
}

export interface PostAsyncOptions {
  url: string,
  data?: any,
  headers?: any
}
